// /*
//     Copyright (c);2019-2022;Wiscom System;

// 	All rights reserved.

//     Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:

//     1. Redistributions of source code must retain the above copyright notice, this
//        list of conditions and the following disclaimer.
//     2. Redistributions in binary form must reproduce the above copyright notice,
//        this list of conditions and the following disclaimer in the documentation
//        and/or other materials provided with the distribution.
//     3. Neither the name of the Wiscom System nor the names of its contributors
//        may be used to endorse or promote products derived from this software without
//        specific prior written permission.

//     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
// OF SUCH DAMAGE.
// */

// #include "los_base.h"
// #include "los_task.h"
// #include "los_hwi.h"
// #include "los_typedef.h"
// #include "pcrambox.h"
// #include "los_api_tlsf.h"
// #include "los_inspect_entry.h"

// #ifdef __cplusplus
// #if __cplusplus
// extern "C" {
// #endif /* __cpluscplus */
// #endif /* __cpluscplus */

// static UINT32 g_uwTskHiID_1;

// VOID flash_test()
// {
// 	printf("\r\n8. apply_a_memery_3()\r\n");
//     UINT8 *flag, i;
//     char name[] = "Cal";

//     i = 1;
//     flag = &i;
//     *flag = 1;
//     pRet3 = NULL;
//     UINT8 sc_cnt = 0;
//     while(pRet3 == NULL)
//     {
//         pRet3 = SC_MALLOC(name, 0x30000UL, flag);
//         if(sc_cnt==0)
//         {
//             printf("\r\n9. %s's pRet is %p\r\n", name, pRet3);
//         }
//     	else
//         {
//             printf("\r\n12. %s's pRet is %p\r\n", name, pRet3);
//         }
//         if(pRet3 == NULL)
//         {
//             printf("%s SC_MALLOC FAIL!\r\n", name);
//             sc_cnt++;
//             if(sc_cnt>1)
//             {
//                 LOS_InspectStatusSetByID(LOS_INSPECT_TLSF, LOS_INSPECT_STU_ERROR);
//             }
//         }
//         else
//         {
//         	break;
//         }
//         LOS_TaskDelay(2000);
//     }
//     printf("THE Identifier IS %s\r\n", name);
//     printf("Test TLSF success!\r\n");
//     LOS_InspectStatusSetByID(LOS_INSPECT_TLSF, LOS_INSPECT_STU_SUCCESS);
//     LOS_TaskDelete(g_uwTskHiID_1);
// }


// UINT32 Example_scfat_flash(VOID)
// {
//    // 
//     printf("\r\n--------4.20 scfat_flash test start!--------\r\n");

//    UINT32 uwRet = 0;

//    TSK_INIT_PARAM_S stInitParam;

//    sclist_pcram_init();

//    stInitParam.pfnTaskEntry = flash_test;
//    stInitParam.usTaskPrio = 9;
//    stInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE;
//    stInitParam.pcName = "flash_test";
//    LOS_TaskLock();//lock task schedue
//    uwRet = LOS_TaskCreate(&g_uwTskHiID_1, &stInitParam);

//    if (uwRet != LOS_OK)
//    {
//        dprintf("create sclist task failed!,error:%x \r\n",uwRet);
//        return uwRet;
//    }
//    else
//    {
//        printf("2. create sclist task success!\r\n");
//    }
//    LOS_TaskUnlock();//unlock task schedue
//     return LOS_OK;
// }

// #ifdef __cplusplus
// #if __cplusplus
// }
// #endif /* __cpluscplus */
// #endif /* __cpluscplus */
